<?php

namespace App\Redis\expired;


use App\Common\Log;
use App\Redis\SubscribeEvent;

/** 测试 */
class test
{
    function funcHandle($val)
    {
        Log::funcLogDebug(__METHOD__, $val);


        $key = "test|" . mt_rand(100, 999);
//        $key2 = "test|" . mt_rand(100, 999);

        $sub_event = SubscribeEvent::funcIns();
        $sub_event->getRedis()->setEx($key, 10, "tests");
//        $sub_event->getRedis()->setEx($key2, 5, "tests");
    }
}